package com.wxgo.dao.base;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

public class BaseDao {

	public int delete(String tableName, String idStrs) {
		return Db.update("delete from " + tableName + " where id in(" + idStrs + ")");
	}

	public boolean insert(String tableName, Record record) {
		return Db.save(tableName, record);
	}
	
}
